import Request from '@/utils/request'

export function menuList() {
    return Request.get(
        'adminmenu/list'
    )
}

export function userMenu() {
    return Request.get(
        'adminmenu/user'
    )
}

export function menuDetail(menu_id) {
    return Request.get(
        `adminmenu/list/${menu_id}`
    )
}

export function menuAdd(params) {
    return Request.post(
        'adminmenu/add',
        params
    )
}

export function menuEdit(menu_id,params) {
    return Request.put(
        `adminmenu/edit/${menu_id}`,
        params
    )
}

export function menuDelete(menu_id) {
    return Request.delete(
        `adminmenu/edit/${menu_id}`,
    )
}